package com.sxu.forkjoindemo;

import java.util.concurrent.ForkJoinPool;

/**
 * Fork/Join
 */
public class TestForkJoin {
    public static void main(String[] args) {
        ForkJoinPool pool = new ForkJoinPool(4);
        // System.out.println(pool.invoke(new MyTask(5)));
        System.out.println(pool.invoke(new MyTask2(1,5)));

    }
}
